package com.wish.wishhouse_resource.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 预约房源表
 * </p>
 *
 * @author zhangshuxin
 * @since 2021-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_room_reservation")
public class TbRoomReservation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("room_id")
    private String roomId;

    @TableField("customer_id")
    private Integer customerId;

    @TableField("showings_name")
    private String showingsName;

    @TableField("showings_sex")
    private Integer showingsSex;

    @TableField("showings_mobile")
    private String showingsMobile;

    @TableField("user_id")
    private Integer userId;

    @TableField("reserve_time")
    private String reserveTime;

    @TableField("status")
    private Integer status;

    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @TableField("remark")
    private String remark;

    @TableField("reserve1")
    private Integer reserve1;

    @TableField("reserve2")
    private Integer reserve2;

    @TableField("reserve3")
    private String reserve3;

    @TableField("reserve4")
    private String reserve4;

    @TableField("reserve5")
    private String reserve5;

    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    private String roomName;
}
